package com.xhwl.data.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xhwl.common.pojo.cent.sdata.OrganizationType;
import com.xhwl.common.query.cent.sdata.OrganizationTypeQuery;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: luyi
 * @Description:
 * @Date: Create in 14:20 2021/8/2
 */
@RestController
public interface IOrganizationTypeService extends IService<OrganizationType> {

    @RequestMapping(value = "/organization-type-service/list", method = RequestMethod.POST)
    List<OrganizationType> list(@RequestPart(value = "organizationTypeQuery", required = false) OrganizationTypeQuery organizationTypeQuery);

    @RequestMapping(value = "/organization-type-service/page", method = RequestMethod.POST)
    Page<OrganizationType> page(@RequestPart(value = "organizationTypeQuery", required = false) OrganizationTypeQuery organizationTypeQuery, @RequestPart("page") Page page);

    /**
     * 获取空间类型
     * @return
     */
    @RequestMapping(value = "/organization-type-service/space-ids", method = RequestMethod.POST)
    List<Integer> spaceIds();
}
